<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<link rel="stylesheet"
	href="<%=request.getContextPath()%>/css/pc/public.css">
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/pc/login.js"></script>
<body>
	<input type="hidden" id="pc_user" value="${pc_user.uid}" />
	<input type="hidden" id="pccolid" value="${pc_user.pccolid}" />
	<!--
        	作者：offline
        	时间：2016-12-25
        	描述：公共部分1,2,3（提取css可重复使用）
        -->
	<div class="top_wtf">
		<div class="top">
			<div class="top_div1">
				欢迎<a href="###"><c:if
						test="${pc_user.email!='' && pc_user.email!=null}">${pc_user.email}</c:if></a>来到中国国际话语体系建设论坛
			</div>
			<!-- <a class="top_a1" href="###">English</a> -->
		<a class="top_a1" href="javascript:tocollection()" id="col_a">加入收藏</a>
			<%-- <c:if
				test="${pc_user.pccolid=='' || pc_user.pccolid==null || pc_user.pccolid<=0}">
				<a class="top_a1" href="javascript:tocollection()" id="col_a">加入收藏</a>
				<input type="hidden" id="pccolid_type" value="1" />
			</c:if>
			<c:if test="${pc_user.pccolid>0}">
				<a class="top_a1" href="javascript:tocollection()" id="col_a">取消收藏</a>
				<input type="hidden" id="pccolid_type" value="2" />
			</c:if> --%>
			<a class="top_a1"
				href="<%=request.getContextPath()%>/basicctr/pcbbsbasic.htm?id=2">联系我们</a>
			<c:if test="${pc_user.email=='' || pc_user.email==null}">
				<a class="top_a1" href="javascript: register()">[注册]</a>
				<a class="top_a1" href="javascript: login()">[登录]</a>
			</c:if>
			<c:if test="${pc_user.email!='' && pc_user.email!=null}">
				<a class="top_a1"
					href="<%=request.getContextPath()%>/login/pcloginout.htm">[退出]</a>
			</c:if>
		</div>
	</div>
	<div class="logo_wtf">
		<div class="logo">
			<div class="logo_div1">
				<a  href="<%=request.getContextPath()%>/newsctr/forum.htm"><img src="<%=request.getContextPath()%>/images/pc/logo_01.jpg"/></a>
			</div>
			<form action="<%=request.getContextPath()%>/newsctr/pcnewslist.htm" id="sform" method="post">
				<input class="logo_in1" type="submit" value="" /> <input
					class="logo_in2" type="text" placeholder="请输入关键字" name="condition"
					value="${news.condition}" /> <input type="hidden" id="pageIndex"
					name="pageIndex" value="1" /> <input
					type="hidden" id="pageSize" name="pageSize"
					value="10" /> <input type="hidden"
					id="newsType" name="newsType" value="1" />
			</form>
		</div>
	</div>
	<div class="nav_wtf">
		<div class="nav">
			<div class="nav_ul1_li1">
				<a class="nav_ul1_li1_a1"
					href="<%=request.getContextPath()%>/newsctr/forum.htm">首页</a>
			</div>
			<div class="nav_ul1_li1">
				<a class="nav_ul1_li1_a1"
					href="<%=request.getContextPath()%>/basicctr/pcbbsbasic.htm?id=1">关于论坛</a>
				<ul class="nav_ul1">
					<li class="nav_ul1_li2"><a
						href="<%=request.getContextPath()%>/basicctr/pcbbsbasic.htm?id=1">论坛概况</a></li>
					<li class="nav_ul1_li2"><a
						href="<%=request.getContextPath()%>/organize/pcolist.htm">机构设置</a></li>
					<li class="nav_ul1_li2"><a
						href="<%=request.getContextPath()%>/newsctr/pcnewslist.htm?newsType=4">理事动态</a></li>
				</ul>
			</div>
			<div class="nav_ul1_li1">
				<a class="nav_ul1_li1_a1"
					href="<%=request.getContextPath()%>/newsctr/pcnewslist.htm?newsType=1">新闻中心</a>
				<ul class="nav_ul1">
					<li class="nav_ul1_li2"><a
						href="<%=request.getContextPath()%>/newsctr/pcnewslist.htm?newsType=1">新闻动态</a></li>
					<li class="nav_ul1_li2"><a
						href="<%=request.getContextPath()%>/newsctr/pcnewslist.htm?newsType=2">近期要闻</a></li>
					<li class="nav_ul1_li2"><a
						href="<%=request.getContextPath()%>/newsctr/pcnewslist.htm?newsType=3">通知公告</a></li>
				</ul>
			</div>
			<div class="nav_ul1_li1">
				<a class="nav_ul1_li1_a1"
					href="<%=request.getContextPath()%>/bbseplctr/pcbbslist.htm">论坛学人</a>
			</div>
			<div class="nav_ul1_li1">
				<a class="nav_ul1_li1_a1"
					href="<%=request.getContextPath()%>/newsctr/pcnewslist.htm?newsType=5">学术成果</a>
			</div>
			<div class="nav_ul1_li1">
				<a class="nav_ul1_li1_a1"
					href="<%=request.getContextPath()%>/basicctr/pcbbsbasic.htm?id=2">联系我们</a>
				<ul class="nav_ul1">
					<li class="nav_ul1_li2"><a
						href="<%=request.getContextPath()%>/basicctr/pcbbsbasic.htm?id=2">联系我们</a></li>
					<li class="nav_ul1_li2"><a
						href="<%=request.getContextPath()%>/basicctr/pcbbsbasic.htm?id=3">诚聘精英</a></li>
				</ul>
			</div>
		</div>
	</div>
	<!--   登录   -->
	<%@include file="../login/login.jsp"%>
	<!--   注册   -->
	<%@include file="../login/register.jsp"%>
</body>
<script type="text/javascript">
	//登录
	function login(){
		$(".login").css({"display":"inline-block"});
		$(".login2").css({"display":"none"});
	}
	//注册
	function register(){
		$(".login2").css({"display":"inline-block"});
		$(".login").css({"display":"none"});
	}
	//收藏操作
	function tocollection(){
		alert("请按键盘Ctrl+D保存");
		<%-- var pc_user=$("#pc_user").val();
		if(pc_user.length==0){//用户为登录，先登录
			login();
			return false;
		}
		var pccolid_type=$("#pccolid_type").val();
		var pccolid=$("#pccolid").val();
		 $.ajax({
	          type: "POST",
		          url: "<%=request.getContextPath()%>/colctr/col.htm",
			data : {
				colId : pccolid,
				colUid : pc_user,
				markerType : pccolid_type

			},
			dataType : "json",
			success : function(data) {
				if (pccolid_type == 1) {//添加收藏
					$("#pccolid_type").val(2);
					$("#pccolid").val(data);
					$("#col_a").html("取消收藏");
				} else if (pccolid_type == 2) {//取消收藏
					$("#pccolid_type").val(1);
					$("#pccolid").val(0);
					$("#col_a").html("添加收藏");
				}
			},
			error : function(error) {
				alert("error");
			}
		}); --%>
	}
</script>
</html>